/*
 * Copyright (c) 2019 Wormpex.com. All Rights Reserved.
 */

package com.sk.classloader;

import java.util.UUID;

/**
 * 接口自带的final属性，调用时不会触发初始化
 * 接口属性为函数触发时，会触发初始化。
 */
interface MyParent2 {
    public static final String a = "a";
}

interface MyChild2 extends MyParent2 {
    public static final String b = UUID.randomUUID().toString();

}

/**
 * @author ke.su date: 2019-11-05 Time: 上午10:30
 */
public class Test2 {
    public static void main(String[] args) {
        System.out.println(MyChild2.b);
    }
}